Back
RTM:

Syntax:

  • RTM Rs0 BS Rs1 BS Rs2 BS .... C5
Description:

The RTM (register-file to memory) instruction copies the contents of specified register file addresses to adjacent memory locations with the indicated bank selects. The transfer is performed via Port4 of the register file. When C5 = 1, some exceptions are conditioned by the top of the stack (see below).

Microcode Pattern:

Takes cycles to execute.
    Example: MASM code see below.

	  
ADDR   DISP     C5  MCC STKC  FLW  IOC  AGU ASEL BS5 P5 BS4 C4 P4
-----------------------------------------------------------------
004A: 00050000   0    -   -    -    -    -    -   0  00  0   0 00
004B: 00001000   0    -   -    -    -     D   -   0  00  0   0 00
004C: 00000000   0    -   -    -    -    -   LAL  0  00  0   0 00
004D: 00000000   0   R2M  -    -    -    -    -   0  00  0   0 00
004E: 00000000   1    -   -    -    -    -    -   0  00  0   0 00 *
004F: 00000000   0    -   -    -    -    -    -   0  00  0   0 00
0050: 00000000   0    -   -    -    -    -    -   0  00  0   0 00
0051: 00000000   0    -   -    -    -    -    -   0  00  0   0 00
0052: 00000000   0    -   -    -    -    -    -   0  00  0   0 00
0053: 00000000   0    -   -    -    -    -    -   0  00  0   0 00
0054: 00000000   0    -   -    -    -    -    -   0  00  5   0 0a **
0055: 00000000   0    -   -    -    -    -    -   0  00  6   0 0b
0056: 00000000   0    -   -    -    -    -    -   0  00  7   0 0c
0057: 00000000   0    -   -    -    -    -    -   0  00  7   0 0d
0058: 00000000   0    -   -    -    -    -    -   0  00  4   0 0e
-----------------------------------------------------------------
 *  - C5
**  - Bit 3 of BS4 is 1 for memory writing on the 
      bi-directional Port 4

	  
Exceptions :

Configuration Register: 0x20 (CrMemExc)

Exception No. Mask R/W Access Cond. Name
[8] 00000000 00000100 RW C5 Data Segmentation Fault
[13] 00000000 00002000 RW C5 Remote Address Invalid

Example :

AGU_D ZERO 0x0005000000001000        
  !! Generates 0x0005000000001000 
  !! on the output of the accumulator
									 
LAL 0
  !! Loads the above value, which 
  !! encodes: 
  !! Len = 5, Memory address = 0x1000
									 
RTM 0xA 1 0xB 2 0xC 3 0xD 3 0xE 0 1  
  !! Loads the low-bank of reg = 0xA
  !! (BS4 = 1) into mem. address 0x1000, 
  !! the high-bank of reg = 0xB (BS4 = 2)
  !! into 0x1001, both banks of reg = 0xC
  !! (BS4 = 3) into 0x1002, the same with
  !! reg = 0xD, but reg = 0xE is not loaded
  !! into 0x1004 (BS4 = 0)

APE Group Zeuthen. 2003

$Id: syntax.php,v 1.8 2004/08/04 09:25:34 noe Exp $